package com.wolf.util;

/**
 * 随机生成ID的类
 */
public class Math {

    private static String mathId;

    public static String random(){

        mathId= "";

        char cha[]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z',
                'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};

        for(int i=0;i<16;i++)
        {
            int index=(int)(java.lang.Math.random()*(cha.length));
            int indexs=(int)(java.lang.Math.random()*10);
            mathId=mathId+cha[index]+""+indexs;
        }
        return mathId;
    }


}
